import Vue from 'vue'
import Vuex from 'vuex'
import user from '@/store/user'
// 导入token存储进本地插件
import createVuexAlong from 'vuex-along'

Vue.use(Vuex)

export default new Vuex.Store({
  // 开启严格格式
  strict: true,
  state: {},
  getters: {},
  mutations: {},
  actions: {},
  modules: { user },
  // 使用本地存储插件
  plugins: [createVuexAlong()]
})
